# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        博智科技  
# Name:         test401
# Description:  列表的定义
# Author:       yzl
# Date:         2019-01-16
#-------------------------------------------------------------------------------

# list_obj = [1,2,3,4,5,6]
# print(type(list_obj))
# print(list_obj)

# 索引从0开始 正数从左边开始 负数从右边开始
#              -4       -3    -2     -1
list_obj1 = ['言先生',45,'1974-5-13',10000]
# print(list_obj1[-4])

# 切片是半闭合区间
list2 = list_obj1[1:4]
print(list2)
list3 = list_obj1[-2:]
print(list3)
